<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProductSaleOff.aspx.cs" Inherits="asp_pages_admin_ProductSaleOff" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Sale of management</title>
    <link href="../../styles/admin.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="PetSaleOff.aspx">Pet</asp:LinkButton>
        <br />
        <br />
        <h1> Sale off management - Product</h1>
        <p>
            &nbsp;</p>
        <asp:Label ID="Label1" runat="server" Text="Product category:"></asp:Label>
        <asp:DropDownList ID="cmbType" runat="server">
        </asp:DropDownList>
        <asp:Button ID="btnView" runat="server" Text="View" OnClick="btnView_Click" />
        <br />
        <br />
        <asp:GridView ID="grvProducts" runat="server" OnRowCancelingEdit="grvProducts_RowCancelingEdit" OnRowDeleting="grvProducts_RowDeleting" OnRowEditing="grvProducts_RowEditing" OnRowUpdating="grvProducts_RowUpdating" AutoGenerateColumns="False" DataKeyNames="ID">
            <Columns>
                <asp:TemplateField HeaderText="Product Name">                   
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Price">               
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("Price") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Available number">              
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("Quantity") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Sale off">
                    <EditItemTemplate>
                        <asp:TextBox ID="txtSaleOff" runat="server" Text='<%# Bind("SaleOff") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label4" runat="server" Text='<%# Eval("SaleOff") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField ShowEditButton="True" />
                <asp:CommandField ShowDeleteButton="True" />
            </Columns>
        </asp:GridView>
        <br />
        &nbsp;<asp:Label ID="lblPaging" runat="server"></asp:Label></div>
    </form>
</body>
</html>
